﻿Public Class WebForm1
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub


    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        authors1DataSource1.Insert()
        GridView1.DataBind()
        TxtBox1au_id.Text = ""
        TxtBox2au_lname.Text = ""
        TxtBox3au_fname.Text = ""
        TxtBox4phone.Text = ""
        TxtBox5address.Text = ""
        TxtBox6city.Text = ""
        TxtBox7state.Text = ""
        TxtBox8zip.Text = ""
        TxtBox9contract.Text = ""
    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        TxtBox1au_id.Text = ""
        TxtBox2au_lname.Text = ""
        TxtBox3au_fname.Text = ""
        TxtBox4phone.Text = ""
        TxtBox5address.Text = ""
        TxtBox6city.Text = ""
        TxtBox7state.Text = ""
        TxtBox8zip.Text = ""
        TxtBox9contract.Text = ""
        TxtBox1au_id.Focus()
    End Sub


    Protected Sub TxtBox7state_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles TxtBox7state.TextChanged

    End Sub

    Protected Sub Button3_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button3.Click
        authors1DataSource1.Update()
        GridView1.DataBind()
        TxtBox1au_id.Text = ""
        TxtBox2au_lname.Text = ""
        TxtBox3au_fname.Text = ""
        TxtBox4phone.Text = ""
        TxtBox5address.Text = ""
        TxtBox6city.Text = ""
        TxtBox7state.Text = ""
        TxtBox8zip.Text = ""
        TxtBox9contract.Text = ""
    End Sub
End Class